<?php /* Smarty version Smarty-3.1.14, created on 2017-08-18 15:29:55
         compiled from "E:\phpStudy\WWW\zyshop\admin\templates\rank_edit.html" */ ?>
<?php /*%%SmartyHeaderCode:19979599500dd59a2c4-46350428%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '24f06a8f0646ef65138f3ccb65383fa42601b9d2' => 
    array (
      0 => 'E:\\phpStudy\\WWW\\zyshop\\admin\\templates\\rank_edit.html',
      1 => 1503041305,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '19979599500dd59a2c4-46350428',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.14',
  'unifunc' => 'content_599500dd5cd5c9_77684513',
  'variables' => 
  array (
    'rank_edit' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_599500dd5cd5c9_77684513')) {function content_599500dd5cd5c9_77684513($_smarty_tpl) {?><?php echo $_smarty_tpl->getSubTemplate ("header.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>

<style>
input {	width: 200px;}
textarea {	width: 350px;	height: 100px;}
</style>
<body>
<div class="fixed-bar">
  <div class="item-title">
    <h3>添加会员等级</h3>
  </div>
</div>
<div class="fixed_bottom">
  <form method="post" action="user_rank.php" enctype="multipart/form-data" id="aspnetForm" name="form1">
    <table style=" width:100%;" cellpadding="0" cellspacing="0" class="table tb-type2">
      <tbody>
        <tr>
          <td class="firtd"> 会员等级名称:</td>
          <td>
          	<input type="text" name="rank_name" value="<?php echo $_smarty_tpl->tpl_vars['rank_edit']->value['rank_name'];?>
" placeholder="请输入名称" required>&nbsp;&nbsp;&nbsp;&nbsp;
            <span id="users"></span>  
          </td>
        </tr>
        <tr>
          <td class="firtd"> 积分下限:</td>
          <td><input type="text" name="min" value="<?php echo $_smarty_tpl->tpl_vars['rank_edit']->value['min_points'];?>
" maxlength="20" required></td>
        </tr>
        <tr>
          <td class="firtd"> 积分上限:</td>
          <td><input type="text" name="max" value="<?php echo $_smarty_tpl->tpl_vars['rank_edit']->value['max_points'];?>
" maxlength="20" required><span id="repassword"></span></td>
        </tr>
         <tr>
          <td class="firtd"> 初始折扣率:</td>
          <td><input type="text" name="discount" value="<?php echo $_smarty_tpl->tpl_vars['rank_edit']->value['discount'];?>
" required></td>
        </tr>
        <tr>
          <td class="firtd"> 会员等级:</td>
          <td><input type="text" name="rank_num" value="<?php echo $_smarty_tpl->tpl_vars['rank_edit']->value['rank_num'];?>
" required></td>
        </tr>
        <tr>	
          <td class="firtd"> 特殊会员组:</td>
          <td>
            <input style="width:15px" type="radio" name="special_rank" <?php if ($_smarty_tpl->tpl_vars['rank_edit']->value['special_rank']==0){?>checked<?php }?> value="0"> 否 &nbsp;&nbsp;&nbsp;&nbsp;
            <input style="width:15px" type="radio" name="special_rank" <?php if ($_smarty_tpl->tpl_vars['rank_edit']->value['special_rank']==1){?>checked<?php }?> value="1"> 是
          </td>
        </tr>
         <tr>	
          <td class="firtd"> 显示价格:</td>
          <td>
            <input style="width:15px" type="radio" name="show_price" <?php if ($_smarty_tpl->tpl_vars['rank_edit']->value['show_price']==0){?>checked<?php }?> value="0"> 否 &nbsp;&nbsp;&nbsp;&nbsp;
            <input style="width:15px" type="radio" name="show_price" <?php if ($_smarty_tpl->tpl_vars['rank_edit']->value['show_price']==1){?>checked<?php }?> value="1"> 是
          </td>
        </tr> 
        <tr>
          <td class="style1">&nbsp;</td>
          <td>
          	  <input type="hidden" name="act" value="insert">
              <input type="hidden" name="rank_id" value="<?php echo $_smarty_tpl->tpl_vars['rank_edit']->value['rank_id'];?>
">
              <a href="JavaScript:void(0);" class="btn" onclick="reset()"><span>重置</span></a>
              <a href="JavaScript:void(0);" class="btn" onclick="$('#tj').click()"><span>确认提交</span></a>
          </td>
        </tr>
      </tbody>
    </table>
    <input type="reset" id="cz" style="display: none;">
    <input type="submit" id="tj" style="display:none;";>
  </form>
</div>
</body>
<script>
    // 重置方法
    function reset(){
        $('input').val('');
        $('textarea').text('');
    }
</script>
</html><?php }} ?>